/**
 * User: alesj
 * Date: 2004.8.23
 * Time: 16:00:49
 */

package com.generalynx.common.constants;

import java.util.Properties;

public final class WebConst {

    private static final String PREFIX = "webconst.";

    private WebConst() {
    }

    public static void init(Properties properties) {
        String fc = properties.getProperty(PREFIX + "frontcontroller");
        if (fc != null) {
            FRONTCONTROLLER = fc;
        }
        String app = properties.getProperty(PREFIX + "application");
        if (app != null) {
            APP_NAME = app;
        }
    }

    //app constants
    public static String APP_NAME = "newsfeed";
    public static String FRONTCONTROLLER = "/newsfeed"; //front url

    //default keys
    public static final String MSG_CODE = "msg_code";

    //basic data keys
    public static final String USER = "user";
    public static final String USERS = "users";

    public static final String INFOS = "infos";
    public static final String APP_STATUS = "APP_STATUS";

    // modules
    public static final String MODULE_ROOT = "MODULE_ROOT";
    public static final String USER_MODULES = "USER_MODULES";

    public static final String LIST = "list";
    public static final String DATA = "data";

    public static final String HEADER_LABEL = "headerLabel";
    public static final String BODY_LABEL = "bodyLabel";
    public static final String ENTITY = "entity";
    public static final String LEFT = "left";
    public static final String RIGHT = "right";

    public static final String CRITERIA = "CRITERIA";
    public static final String ATTACHMENTS = "attachments";

}
